﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SuperSerialization.Tree
{
    /// <summary>
    /// A node representing a namespace usage statement.
    /// </summary>
    class NamespaceNode : Node
    {
        /// <summary>
        /// The namespace's name.
        /// </summary>
        public string Namespace = "";

        /// <summary>
        /// Constructs a new namespace node.
        /// </summary>
        /// <param name="name">The full name of the namespace. e.g., SuperSerialization.Tree</param>
        public NamespaceNode(string name)
        {
            this.Namespace = name;
        }

        public override void Accept(TreeVisitor.AbstractVisitor visitor)
        {
            visitor.VisitNamespace(this);
        }
    }
}
